package com.youkeyi.ddy.cloud.common.api.basic.storage.vaccinum;

import com.youkeyi.ddy.cloud.common.api.basic.storage.vaccinum.dto.StorageVaccinumListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.storage.vaccinum.param.StorageVaccinumCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.vaccinum.param.StorageVaccinumDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.vaccinum.param.StorageVaccinumQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.vaccinum.param.StorageVaccinumUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * StorageVaccinumCloudService
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-STORAGE", fallback = StorageVaccinumCloudServiceFallback.class)
@RequestMapping("/storage/vaccinum")
public interface StorageVaccinumCloudService {

    /**
     * 查询疫苗商品列表.
     *
     * @param param the param
     * @return the auth list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract StorageVaccinumListCloudDto query(@RequestBody StorageVaccinumQueryCloudParam param);

    /**
     * 新增疫苗商品.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody StorageVaccinumCreateCloudParam param);

    /**
     * 编辑疫苗商品.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody StorageVaccinumUpdateCloudParam param);

    /**
     * 删除疫苗商品.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody StorageVaccinumDeleteCloudParam param);
}
